import request from '../utils/request';
//查询登录用户
export const getUserData = query => {
    return request({
        url: '/user/getuser',
        method: 'get'
    });
};
//登录
export const login = query => {
    return request({
        url: '/user/longin',
        method: 'get',
        params: query
    });
};
//管理员设置用户
export const adminSetuser = query => {
    return request({
        url: '/user/adminSetuser',
        method: 'post',
        data: query
    });
};
//获取用户列表
export const getUserList = query => {
    return request({
        url: '/user/getUserList',
        method: 'get'
    });
};
//查询商品列表
export const getProduct = query => {
    return request({
        url: '/product/query',
        method: 'get',
        params: query
    });
};
//更新货架列表
export const updateshelfbya = query => {
    return request({
        url: '/decoration/updateshelfbya',
        method: 'post',
        data: query
    });
};
//查询货架列表
export const getShopShelf = query => {
    return request({
        url: '/decoration/getShopShelf',
        method: 'get',
        params: query
    });
};